****  DOFILE for replication of results in Tallberg, Sommerer, Squatrito - April 2015 


use "C:\Users\...\Dataset Tallberg Sommerer Squatrito.dta",clear 


********** TABLE 1

****** All IOs

***** Model 1

logit openbody time*  DDShare_dMS     sha_newDem dem_pow    l3_part_disc ln_protest_l   local_imp nonc_inc_mon decision security  ln_budget  ln_TNA_reg l_UNconf34isre ln_protest_isre  mediacov_bodyIO tech_comp_pf  MS_affin    , iterate(99) cluster (idiobo) robust
fitstat

***** Model 2

logit openbody time*  DDShare_dMS  ia_dd_shnew   sha_newDem dem_pow    l3_part_disc ln_protest_l   local_imp nonc_inc_mon decision security  ln_budget  ln_TNA_reg l_UNconf34isre ln_protest_isre  mediacov_bodyIO tech_comp_pf  MS_affin   , iterate(99) cluster (idiobo) robust
fitstat

***** Model 3

logit openbody time*  DDShare_dMS  ia_dd_dempow ia_dd_shnew   ia_dpow_shnew  sha_newDem dem_pow    l3_part_disc ln_protest_l   local_imp nonc_inc_mon decision security  ln_budget  ln_TNA_reg l_UNconf34isre ln_protest_isre  mediacov_bodyIO tech_comp_pf  MS_affin   , iterate(99) cluster (idiobo) robust
fitstat

***** Model 4

logit openbody time*  DDShare_dMS  ia_dpow_shnew  sha_newDem dem_pow    l3_part_disc ln_protest_l   local_imp nonc_inc_mon decision security  ln_budget  ln_TNA_reg l_UNconf34isre ln_protest_isre  mediacov_bodyIO tech_comp_pf  MS_affin   , iterate(99) cluster (idiobo) robust
fitstat


******* IOs with majority rule

***** Model 5

logit openbody time*  DDShare_dMS     sha_newDem dem_pow    l3_part_disc ln_protest_l   local_imp nonc_inc_mon decision security  ln_budget  ln_TNA_reg l_UNconf34isre ln_protest_isre  mediacov_bodyIO tech_comp_pf  MS_affin  if vote==1  , iterate(99) cluster (idiobo) robust
fitstat

***** Model 6

logit openbody time*  DDShare_dMS  ia_dd_shnew   sha_newDem dem_pow    l3_part_disc ln_protest_l   local_imp nonc_inc_mon decision security  ln_budget  ln_TNA_reg l_UNconf34isre ln_protest_isre  mediacov_bodyIO tech_comp_pf  MS_affin  if vote==1  , iterate(99) cluster (idiobo) robust
fitstat

***** Model 7

logit openbody time*  DDShare_dMS  ia_dd_dempow   sha_newDem dem_pow    l3_part_disc ln_protest_l   local_imp nonc_inc_mon decision security  ln_budget  ln_TNA_reg l_UNconf34isre ln_protest_isre  mediacov_bodyIO tech_comp_pf  MS_affin  if vote==1  , iterate(99) cluster (idiobo) robust
fitstat

***** Model 8

logit openbody time*  DDShare_dMS  ia_dpow_shnew  sha_newDem dem_pow    l3_part_disc ln_protest_l   local_imp nonc_inc_mon decision security  ln_budget  ln_TNA_reg l_UNconf34isre ln_protest_isre  mediacov_bodyIO tech_comp_pf  MS_affin  if vote==1  , iterate(99) cluster (idiobo) robust
fitstat



******* IO with consensus rule

***** Model 9

logit openbody time*  DDShare_dMS     sha_newDem dem_pow    l3_part_disc ln_protest_l   local_imp nonc_inc_mon decision security  ln_budget  ln_TNA_reg l_UNconf34isre ln_protest_isre  mediacov_bodyIO tech_comp_pf  MS_affin  if vote==0  , iterate(99) cluster (idiobo) robust
fitstat

***** Model 10

logit openbody time*  DDShare_dMS  ia_dd_shnew   sha_newDem dem_pow    l3_part_disc ln_protest_l   local_imp nonc_inc_mon decision security  ln_budget  ln_TNA_reg l_UNconf34isre ln_protest_isre  mediacov_bodyIO tech_comp_pf  MS_affin  if vote==0  , iterate(99) cluster (idiobo) robust
fitstat

***** Model 11

logit openbody time*  DDShare_dMS  ia_dd_dempow   sha_newDem dem_pow    l3_part_disc ln_protest_l   local_imp nonc_inc_mon decision security  ln_budget  ln_TNA_reg l_UNconf34isre ln_protest_isre  mediacov_bodyIO tech_comp_pf  MS_affin  if vote==0  , iterate(99) cluster (idiobo) robust
fitstat

***** Model 12

logit openbody time*  DDShare_dMS  ia_dpow_shnew  sha_newDem dem_pow    l3_part_disc ln_protest_l   local_imp nonc_inc_mon decision security  ln_budget  ln_TNA_reg l_UNconf34isre ln_protest_isre  mediacov_bodyIO tech_comp_pf  MS_affin if vote==0   , iterate(99) cluster (idiobo) robust
fitstat











********** TABLE 2

***** Model 13 - Before 1990

logit openbody time*  DDShare_dMS     sha_newDem dem_pow  l3_part_disc ln_protest_l   local_imp nonc_inc_mon decision security  ln_budget  ln_TNA_reg l_UNconf34isre ln_protest_isre  mediacov_bodyIO tech_comp_pf  MS_affin if year<1990   , iterate(99) cluster (idiobo) robust
fitstat

***** Model 14 - After 1990

logit openbody time*  DDShare_dMS     sha_newDem dem_pow l3_part_disc ln_protest_l   local_imp nonc_inc_mon decision security  ln_budget  ln_TNA_reg l_UNconf34isre ln_protest_isre  mediacov_bodyIO tech_comp_pf  MS_affin  if year>1989  , iterate(99) cluster (idiobo) robust
fitstat

***** Model 15 - No Euro-Dominance

logit openbody time*  DDShare_dMS     sha_newDem dem_pow l3_part_disc ln_protest_l   local_imp nonc_inc_mon decision security  ln_budget  ln_TNA_reg l_UNconf34isre ln_protest_isre  mediacov_bodyIO tech_comp_pf  MS_affin  if europe_dom==0  , iterate(99) cluster (idiobo) robust
fitstat


***** Alternative measures

***** Model 16 - Polity instead of DD

logit openbody time*  p4_ave p4_sd     sha_newDem dem_pow l3_part_disc ln_protest_l   local_imp nonc_inc_mon decision security  ln_budget  ln_TNA_reg l_UNconf34isre ln_protest_isre  mediacov_bodyIO tech_comp_pf  MS_affin   , iterate(99) cluster (idiobo) robust
fitstat

***** Model 17 - US democratic major power

logit openbody time*  DDShare_dMS     sha_newDem  US_dum   nondempow   l3_part_disc ln_protest_l   local_imp nonc_inc_mon decision security  ln_budget  ln_TNA_reg l_UNconf34isre ln_protest_isre  mediacov_bodyIO tech_comp_pf  MS_affin    , iterate(99) cluster (idiobo) robust
fitstat

***** Model 18 - Democratization / Democratic accessions

logit openbody time*  DDShare_dMS  demCH_oldMS demCH_newMS l3_part_disc ln_protest_l   local_imp nonc_inc_mon decision security  ln_budget  ln_TNA_reg l_UNconf34isre ln_protest_isre  mediacov_bodyIO tech_comp_pf  MS_affin    , iterate(99) cluster (idiobo) robust
fitstat


****** Alternative specification	

**** Model 19: Model 1, but IO dummies instead of non-regime controls

logit openbody time*  DDShare_dMS  sha_newDem dem_pow    io_id*   , iterate(99) cluster (id_io) robust
fitstat


***** Model 20 - Model 1 at IO-level (not IO-body level)

*****************   Aggregate DATA at IO -level *****************


collapse (mean)  DDShare_dMS     sha_newDem dem_pow    l3_part_disc ln_protest_l     ln_budget  ln_TNA_reg l_UNconf34isre ln_protest_isre  mediacov_bodyIO  MS_affin local_imp nonc_inc_mon decision security  tech_comp_pf (max) openbody (first) time1 time2 time3 , by(id_io year)

logit openbody time*  DDShare_dMS     sha_newDem dem_pow    l3_part_disc ln_protest_l   local_imp nonc_inc_mon decision security  ln_budget  ln_TNA_reg l_UNconf34isre ln_protest_isre  mediacov_bodyIO tech_comp_pf  MS_affin    , iterate(99) cluster (id_io) robust

fitstat




********




***** Model 21 - Model 1, conditional logit

********* Use DATA at IO body level (Model1-19)

use "C:\Users\...\Dataset Tallberg Sommerer Squatrito.dta",clear 


xtlogit openbody  DDShare_dMS     sha_newDem dem_pow l3_part_disc ln_protest_l      ln_TNA_reg l_UNconf34isre ln_protest_isre  mediacov_bodyIO   MS_affin time*   , fe iterate(5) 
fitstat
